package com.yl.auth.model.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;


/**
 * @author 刘致远
 * @datetime 2023/7/13 19:02
 * @description 类对象
 */
@Data
public class ShicaiVo {

    @ApiModelProperty("食材id")
    @TableId(value="id",type= IdType.AUTO)
    private Integer id;

    @ApiModelProperty("物料名称")
    private String wuliao;

    @ApiModelProperty("供应商外键id")
    private Integer gid;

    @ApiModelProperty("批发价")
    private Double pifa;

    @ApiModelProperty("零售价格")
    private Double lingshou;

    @ApiModelProperty("采购价")
    private Double caigou;

    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime gengxin;

    @ApiModelProperty("供应商名称")
    private String gname;

    @ApiModelProperty("供给食材数")
    @TableField(exist = false)
    private Integer gnumber;

    @ApiModelProperty("联系人")
    private String lname;

    @ApiModelProperty("联系电话")
    private String phone;

    @ApiModelProperty("单位名称")
    private String dname;

    @ApiModelProperty("单位外键id")
    private Integer did;

    private String status;

    private String yname;
}
